package com.android.kotlin.util.http

import com.android.kotlin.bean.BannerRsp
import com.android.kotlin.bean.HomeArticleRsp
import com.android.kotlin.util.BaseResponse
import io.reactivex.Observable
import retrofit2.http.GET

/**
 * @Description:
 * @Author: xuwenlong
 * @Email: xuwenlong @ebrun.com
 * @Version:
 * @Create: 2019/2/28 0028
 * @Modify:
 */

interface WanApiService{

    @GET("/banner/json")
    abstract fun getBanner() : Observable<BaseResponse<List<BannerRsp>>>

    @GET("/article/list/{page}/json")
    abstract fun getHomeArticle(): Observable<BaseResponse<HomeArticleRsp>>
}